﻿using GestionCompte.Enums;

namespace GestionCompte.Entity
{
    public class MenuItemEntity
    {
        public int InternalId {get;set;} 
        public string DisplayName {get;set;}
        public string HtmlId {get;set;}
        public bool IsActivated {get;set;}
        public MenuItemCategories Category {get; set;}
        public string Controller {get;set;}
        public string Action {get;set;}

        public MenuItemEntity(string displayName, string htmlId, bool isActivated, MenuItemCategories category, string Controller, string Action)
        {
            this.InternalId = 1;
            this.DisplayName = displayName;
            this.HtmlId = htmlId;
            this.IsActivated = isActivated;
            this.Category = MenuItemCategories.Layout;
            this.Controller = Controller;
            this.Action = Action;
        }

        public MenuItemEntity(CategoryEntity categ)
        {
            this.InternalId = 1;
            this.DisplayName = categ.Name;
            this.HtmlId = categ.Name;
            this.IsActivated = true;
            this.Category = MenuItemCategories.Layout;
            this.Controller = "";
            this.Action = ""; 
        }
    }
}
